<?php 

class Request extends stdClass
{
	function Request()
	{	
		global $app_request;
		
		var_dump($app_request);
	}
	function getCmd($name, $default = null, $method = null, $type = null)
	{
		global $app_request;
		if ($method)
		{
			if (isset($method[$name]))
				return $method[$name];
			return $default;
		}
			if (isset($app_request[$name]))
				return $app_request[$name];
			return $default;
	}
	function getVar($name, $default = null, $method = null, $type = null)
	{
		global $app_request;
		if ($method)
		{
			if (isset($method[$name]))
				return $method[$name];
			return $default;
		}

			if (isset($app_request[$name]))
				return $app_request[$name];
			return $default;
	}
	
}



?>